#ifndef MISC_TAGFRAME_H
#define MISC_TAGFRAME_H

#include <QFrame>
#include <QLabel>

namespace GMail
{
	class GMailContext;
	class TagFrame: public QFrame
	{
		const static QString GMail_URL;
		public:
			TagFrame(QWidget* parent,GMailContext*);
			~TagFrame();

			void setTag(const QString& tag,const QString& alias= QString::null);
			void setCount(int count);

		protected:
			void mousePressEvent(QMouseEvent*);
			void resizeEvent(QResizeEvent*);
		private:
			QLabel tagLabel;
			QLabel countLabel;
			GMailContext* m_context;

			QString anchor;
			int count;
	};
}
#endif // TAGFRAME_H
